package property.pojo;

import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.Date;
import java.util.Iterator;
import java.util.List;

public class FinanceExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public FinanceExample() {
        oredCriteria = new ArrayList<>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        protected void addCriterionForJDBCDate(String condition, Date value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            addCriterion(condition, new java.sql.Date(value.getTime()), property);
        }

        protected void addCriterionForJDBCDate(String condition, List<Date> values, String property) {
            if (values == null || values.size() == 0) {
                throw new RuntimeException("Value list for " + property + " cannot be null or empty");
            }
            List<java.sql.Date> dateList = new ArrayList<>();
            Iterator<Date> iter = values.iterator();
            while (iter.hasNext()) {
                dateList.add(new java.sql.Date(iter.next().getTime()));
            }
            addCriterion(condition, dateList, property);
        }

        protected void addCriterionForJDBCDate(String condition, Date value1, Date value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            addCriterion(condition, new java.sql.Date(value1.getTime()), new java.sql.Date(value2.getTime()), property);
        }

        public Criteria andFIdIsNull() {
            addCriterion("f_id is null");
            return (Criteria) this;
        }

        public Criteria andFIdIsNotNull() {
            addCriterion("f_id is not null");
            return (Criteria) this;
        }

        public Criteria andFIdEqualTo(Integer value) {
            addCriterion("f_id =", value, "fId");
            return (Criteria) this;
        }

        public Criteria andFIdNotEqualTo(Integer value) {
            addCriterion("f_id <>", value, "fId");
            return (Criteria) this;
        }

        public Criteria andFIdGreaterThan(Integer value) {
            addCriterion("f_id >", value, "fId");
            return (Criteria) this;
        }

        public Criteria andFIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("f_id >=", value, "fId");
            return (Criteria) this;
        }

        public Criteria andFIdLessThan(Integer value) {
            addCriterion("f_id <", value, "fId");
            return (Criteria) this;
        }

        public Criteria andFIdLessThanOrEqualTo(Integer value) {
            addCriterion("f_id <=", value, "fId");
            return (Criteria) this;
        }

        public Criteria andFIdIn(List<Integer> values) {
            addCriterion("f_id in", values, "fId");
            return (Criteria) this;
        }

        public Criteria andFIdNotIn(List<Integer> values) {
            addCriterion("f_id not in", values, "fId");
            return (Criteria) this;
        }

        public Criteria andFIdBetween(Integer value1, Integer value2) {
            addCriterion("f_id between", value1, value2, "fId");
            return (Criteria) this;
        }

        public Criteria andFIdNotBetween(Integer value1, Integer value2) {
            addCriterion("f_id not between", value1, value2, "fId");
            return (Criteria) this;
        }

        public Criteria andFDateIsNull() {
            addCriterion("f_date is null");
            return (Criteria) this;
        }

        public Criteria andFDateIsNotNull() {
            addCriterion("f_date is not null");
            return (Criteria) this;
        }

        public Criteria andFDateEqualTo(Date value) {
            addCriterionForJDBCDate("f_date =", value, "fDate");
            return (Criteria) this;
        }

        public Criteria andFDateNotEqualTo(Date value) {
            addCriterionForJDBCDate("f_date <>", value, "fDate");
            return (Criteria) this;
        }

        public Criteria andFDateGreaterThan(Date value) {
            addCriterionForJDBCDate("f_date >", value, "fDate");
            return (Criteria) this;
        }

        public Criteria andFDateGreaterThanOrEqualTo(Date value) {
            addCriterionForJDBCDate("f_date >=", value, "fDate");
            return (Criteria) this;
        }

        public Criteria andFDateLessThan(Date value) {
            addCriterionForJDBCDate("f_date <", value, "fDate");
            return (Criteria) this;
        }

        public Criteria andFDateLessThanOrEqualTo(Date value) {
            addCriterionForJDBCDate("f_date <=", value, "fDate");
            return (Criteria) this;
        }

        public Criteria andFDateIn(List<Date> values) {
            addCriterionForJDBCDate("f_date in", values, "fDate");
            return (Criteria) this;
        }

        public Criteria andFDateNotIn(List<Date> values) {
            addCriterionForJDBCDate("f_date not in", values, "fDate");
            return (Criteria) this;
        }

        public Criteria andFDateBetween(Date value1, Date value2) {
            addCriterionForJDBCDate("f_date between", value1, value2, "fDate");
            return (Criteria) this;
        }

        public Criteria andFDateNotBetween(Date value1, Date value2) {
            addCriterionForJDBCDate("f_date not between", value1, value2, "fDate");
            return (Criteria) this;
        }

        public Criteria andFTypeIsNull() {
            addCriterion("f_type is null");
            return (Criteria) this;
        }

        public Criteria andFTypeIsNotNull() {
            addCriterion("f_type is not null");
            return (Criteria) this;
        }

        public Criteria andFTypeEqualTo(String value) {
            addCriterion("f_type =", value, "fType");
            return (Criteria) this;
        }

        public Criteria andFTypeNotEqualTo(String value) {
            addCriterion("f_type <>", value, "fType");
            return (Criteria) this;
        }

        public Criteria andFTypeGreaterThan(String value) {
            addCriterion("f_type >", value, "fType");
            return (Criteria) this;
        }

        public Criteria andFTypeGreaterThanOrEqualTo(String value) {
            addCriterion("f_type >=", value, "fType");
            return (Criteria) this;
        }

        public Criteria andFTypeLessThan(String value) {
            addCriterion("f_type <", value, "fType");
            return (Criteria) this;
        }

        public Criteria andFTypeLessThanOrEqualTo(String value) {
            addCriterion("f_type <=", value, "fType");
            return (Criteria) this;
        }

        public Criteria andFTypeLike(String value) {
            addCriterion("f_type like", value, "fType");
            return (Criteria) this;
        }

        public Criteria andFTypeNotLike(String value) {
            addCriterion("f_type not like", value, "fType");
            return (Criteria) this;
        }

        public Criteria andFTypeIn(List<String> values) {
            addCriterion("f_type in", values, "fType");
            return (Criteria) this;
        }

        public Criteria andFTypeNotIn(List<String> values) {
            addCriterion("f_type not in", values, "fType");
            return (Criteria) this;
        }

        public Criteria andFTypeBetween(String value1, String value2) {
            addCriterion("f_type between", value1, value2, "fType");
            return (Criteria) this;
        }

        public Criteria andFTypeNotBetween(String value1, String value2) {
            addCriterion("f_type not between", value1, value2, "fType");
            return (Criteria) this;
        }

        public Criteria andFAmountIsNull() {
            addCriterion("f_amount is null");
            return (Criteria) this;
        }

        public Criteria andFAmountIsNotNull() {
            addCriterion("f_amount is not null");
            return (Criteria) this;
        }

        public Criteria andFAmountEqualTo(BigDecimal value) {
            addCriterion("f_amount =", value, "fAmount");
            return (Criteria) this;
        }

        public Criteria andFAmountNotEqualTo(BigDecimal value) {
            addCriterion("f_amount <>", value, "fAmount");
            return (Criteria) this;
        }

        public Criteria andFAmountGreaterThan(BigDecimal value) {
            addCriterion("f_amount >", value, "fAmount");
            return (Criteria) this;
        }

        public Criteria andFAmountGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("f_amount >=", value, "fAmount");
            return (Criteria) this;
        }

        public Criteria andFAmountLessThan(BigDecimal value) {
            addCriterion("f_amount <", value, "fAmount");
            return (Criteria) this;
        }

        public Criteria andFAmountLessThanOrEqualTo(BigDecimal value) {
            addCriterion("f_amount <=", value, "fAmount");
            return (Criteria) this;
        }

        public Criteria andFAmountIn(List<BigDecimal> values) {
            addCriterion("f_amount in", values, "fAmount");
            return (Criteria) this;
        }

        public Criteria andFAmountNotIn(List<BigDecimal> values) {
            addCriterion("f_amount not in", values, "fAmount");
            return (Criteria) this;
        }

        public Criteria andFAmountBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("f_amount between", value1, value2, "fAmount");
            return (Criteria) this;
        }

        public Criteria andFAmountNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("f_amount not between", value1, value2, "fAmount");
            return (Criteria) this;
        }

        public Criteria andFStakeholderIsNull() {
            addCriterion("f_stakeholder is null");
            return (Criteria) this;
        }

        public Criteria andFStakeholderIsNotNull() {
            addCriterion("f_stakeholder is not null");
            return (Criteria) this;
        }

        public Criteria andFStakeholderEqualTo(String value) {
            addCriterion("f_stakeholder =", value, "fStakeholder");
            return (Criteria) this;
        }

        public Criteria andFStakeholderNotEqualTo(String value) {
            addCriterion("f_stakeholder <>", value, "fStakeholder");
            return (Criteria) this;
        }

        public Criteria andFStakeholderGreaterThan(String value) {
            addCriterion("f_stakeholder >", value, "fStakeholder");
            return (Criteria) this;
        }

        public Criteria andFStakeholderGreaterThanOrEqualTo(String value) {
            addCriterion("f_stakeholder >=", value, "fStakeholder");
            return (Criteria) this;
        }

        public Criteria andFStakeholderLessThan(String value) {
            addCriterion("f_stakeholder <", value, "fStakeholder");
            return (Criteria) this;
        }

        public Criteria andFStakeholderLessThanOrEqualTo(String value) {
            addCriterion("f_stakeholder <=", value, "fStakeholder");
            return (Criteria) this;
        }

        public Criteria andFStakeholderLike(String value) {
            addCriterion("f_stakeholder like", value, "fStakeholder");
            return (Criteria) this;
        }

        public Criteria andFStakeholderNotLike(String value) {
            addCriterion("f_stakeholder not like", value, "fStakeholder");
            return (Criteria) this;
        }

        public Criteria andFStakeholderIn(List<String> values) {
            addCriterion("f_stakeholder in", values, "fStakeholder");
            return (Criteria) this;
        }

        public Criteria andFStakeholderNotIn(List<String> values) {
            addCriterion("f_stakeholder not in", values, "fStakeholder");
            return (Criteria) this;
        }

        public Criteria andFStakeholderBetween(String value1, String value2) {
            addCriterion("f_stakeholder between", value1, value2, "fStakeholder");
            return (Criteria) this;
        }

        public Criteria andFStakeholderNotBetween(String value1, String value2) {
            addCriterion("f_stakeholder not between", value1, value2, "fStakeholder");
            return (Criteria) this;
        }

        public Criteria andFNumberIsNull() {
            addCriterion("f_number is null");
            return (Criteria) this;
        }

        public Criteria andFNumberIsNotNull() {
            addCriterion("f_number is not null");
            return (Criteria) this;
        }

        public Criteria andFNumberEqualTo(Integer value) {
            addCriterion("f_number =", value, "fNumber");
            return (Criteria) this;
        }

        public Criteria andFNumberNotEqualTo(Integer value) {
            addCriterion("f_number <>", value, "fNumber");
            return (Criteria) this;
        }

        public Criteria andFNumberGreaterThan(Integer value) {
            addCriterion("f_number >", value, "fNumber");
            return (Criteria) this;
        }

        public Criteria andFNumberGreaterThanOrEqualTo(Integer value) {
            addCriterion("f_number >=", value, "fNumber");
            return (Criteria) this;
        }

        public Criteria andFNumberLessThan(Integer value) {
            addCriterion("f_number <", value, "fNumber");
            return (Criteria) this;
        }

        public Criteria andFNumberLessThanOrEqualTo(Integer value) {
            addCriterion("f_number <=", value, "fNumber");
            return (Criteria) this;
        }

        public Criteria andFNumberIn(List<Integer> values) {
            addCriterion("f_number in", values, "fNumber");
            return (Criteria) this;
        }

        public Criteria andFNumberNotIn(List<Integer> values) {
            addCriterion("f_number not in", values, "fNumber");
            return (Criteria) this;
        }

        public Criteria andFNumberBetween(Integer value1, Integer value2) {
            addCriterion("f_number between", value1, value2, "fNumber");
            return (Criteria) this;
        }

        public Criteria andFNumberNotBetween(Integer value1, Integer value2) {
            addCriterion("f_number not between", value1, value2, "fNumber");
            return (Criteria) this;
        }

        public Criteria andFStatusIsNull() {
            addCriterion("f_status is null");
            return (Criteria) this;
        }

        public Criteria andFStatusIsNotNull() {
            addCriterion("f_status is not null");
            return (Criteria) this;
        }

        public Criteria andFStatusEqualTo(Byte value) {
            addCriterion("f_status =", value, "fStatus");
            return (Criteria) this;
        }

        public Criteria andFStatusNotEqualTo(Byte value) {
            addCriterion("f_status <>", value, "fStatus");
            return (Criteria) this;
        }

        public Criteria andFStatusGreaterThan(Byte value) {
            addCriterion("f_status >", value, "fStatus");
            return (Criteria) this;
        }

        public Criteria andFStatusGreaterThanOrEqualTo(Byte value) {
            addCriterion("f_status >=", value, "fStatus");
            return (Criteria) this;
        }

        public Criteria andFStatusLessThan(Byte value) {
            addCriterion("f_status <", value, "fStatus");
            return (Criteria) this;
        }

        public Criteria andFStatusLessThanOrEqualTo(Byte value) {
            addCriterion("f_status <=", value, "fStatus");
            return (Criteria) this;
        }

        public Criteria andFStatusIn(List<Byte> values) {
            addCriterion("f_status in", values, "fStatus");
            return (Criteria) this;
        }

        public Criteria andFStatusNotIn(List<Byte> values) {
            addCriterion("f_status not in", values, "fStatus");
            return (Criteria) this;
        }

        public Criteria andFStatusBetween(Byte value1, Byte value2) {
            addCriterion("f_status between", value1, value2, "fStatus");
            return (Criteria) this;
        }

        public Criteria andFStatusNotBetween(Byte value1, Byte value2) {
            addCriterion("f_status not between", value1, value2, "fStatus");
            return (Criteria) this;
        }

        public Criteria andFNotesIsNull() {
            addCriterion("f_notes is null");
            return (Criteria) this;
        }

        public Criteria andFNotesIsNotNull() {
            addCriterion("f_notes is not null");
            return (Criteria) this;
        }

        public Criteria andFNotesEqualTo(String value) {
            addCriterion("f_notes =", value, "fNotes");
            return (Criteria) this;
        }

        public Criteria andFNotesNotEqualTo(String value) {
            addCriterion("f_notes <>", value, "fNotes");
            return (Criteria) this;
        }

        public Criteria andFNotesGreaterThan(String value) {
            addCriterion("f_notes >", value, "fNotes");
            return (Criteria) this;
        }

        public Criteria andFNotesGreaterThanOrEqualTo(String value) {
            addCriterion("f_notes >=", value, "fNotes");
            return (Criteria) this;
        }

        public Criteria andFNotesLessThan(String value) {
            addCriterion("f_notes <", value, "fNotes");
            return (Criteria) this;
        }

        public Criteria andFNotesLessThanOrEqualTo(String value) {
            addCriterion("f_notes <=", value, "fNotes");
            return (Criteria) this;
        }

        public Criteria andFNotesLike(String value) {
            addCriterion("f_notes like", value, "fNotes");
            return (Criteria) this;
        }

        public Criteria andFNotesNotLike(String value) {
            addCriterion("f_notes not like", value, "fNotes");
            return (Criteria) this;
        }

        public Criteria andFNotesIn(List<String> values) {
            addCriterion("f_notes in", values, "fNotes");
            return (Criteria) this;
        }

        public Criteria andFNotesNotIn(List<String> values) {
            addCriterion("f_notes not in", values, "fNotes");
            return (Criteria) this;
        }

        public Criteria andFNotesBetween(String value1, String value2) {
            addCriterion("f_notes between", value1, value2, "fNotes");
            return (Criteria) this;
        }

        public Criteria andFNotesNotBetween(String value1, String value2) {
            addCriterion("f_notes not between", value1, value2, "fNotes");
            return (Criteria) this;
        }

        public Criteria andFStaffIdIsNull() {
            addCriterion("f_staff_id is null");
            return (Criteria) this;
        }

        public Criteria andFStaffIdIsNotNull() {
            addCriterion("f_staff_id is not null");
            return (Criteria) this;
        }

        public Criteria andFStaffIdEqualTo(Integer value) {
            addCriterion("f_staff_id =", value, "fStaffId");
            return (Criteria) this;
        }

        public Criteria andFStaffIdNotEqualTo(Integer value) {
            addCriterion("f_staff_id <>", value, "fStaffId");
            return (Criteria) this;
        }

        public Criteria andFStaffIdGreaterThan(Integer value) {
            addCriterion("f_staff_id >", value, "fStaffId");
            return (Criteria) this;
        }

        public Criteria andFStaffIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("f_staff_id >=", value, "fStaffId");
            return (Criteria) this;
        }

        public Criteria andFStaffIdLessThan(Integer value) {
            addCriterion("f_staff_id <", value, "fStaffId");
            return (Criteria) this;
        }

        public Criteria andFStaffIdLessThanOrEqualTo(Integer value) {
            addCriterion("f_staff_id <=", value, "fStaffId");
            return (Criteria) this;
        }

        public Criteria andFStaffIdIn(List<Integer> values) {
            addCriterion("f_staff_id in", values, "fStaffId");
            return (Criteria) this;
        }

        public Criteria andFStaffIdNotIn(List<Integer> values) {
            addCriterion("f_staff_id not in", values, "fStaffId");
            return (Criteria) this;
        }

        public Criteria andFStaffIdBetween(Integer value1, Integer value2) {
            addCriterion("f_staff_id between", value1, value2, "fStaffId");
            return (Criteria) this;
        }

        public Criteria andFStaffIdNotBetween(Integer value1, Integer value2) {
            addCriterion("f_staff_id not between", value1, value2, "fStaffId");
            return (Criteria) this;
        }

        public Criteria andFAdminIdIsNull() {
            addCriterion("f_admin_id is null");
            return (Criteria) this;
        }

        public Criteria andFAdminIdIsNotNull() {
            addCriterion("f_admin_id is not null");
            return (Criteria) this;
        }

        public Criteria andFAdminIdEqualTo(Integer value) {
            addCriterion("f_admin_id =", value, "fAdminId");
            return (Criteria) this;
        }

        public Criteria andFAdminIdNotEqualTo(Integer value) {
            addCriterion("f_admin_id <>", value, "fAdminId");
            return (Criteria) this;
        }

        public Criteria andFAdminIdGreaterThan(Integer value) {
            addCriterion("f_admin_id >", value, "fAdminId");
            return (Criteria) this;
        }

        public Criteria andFAdminIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("f_admin_id >=", value, "fAdminId");
            return (Criteria) this;
        }

        public Criteria andFAdminIdLessThan(Integer value) {
            addCriterion("f_admin_id <", value, "fAdminId");
            return (Criteria) this;
        }

        public Criteria andFAdminIdLessThanOrEqualTo(Integer value) {
            addCriterion("f_admin_id <=", value, "fAdminId");
            return (Criteria) this;
        }

        public Criteria andFAdminIdIn(List<Integer> values) {
            addCriterion("f_admin_id in", values, "fAdminId");
            return (Criteria) this;
        }

        public Criteria andFAdminIdNotIn(List<Integer> values) {
            addCriterion("f_admin_id not in", values, "fAdminId");
            return (Criteria) this;
        }

        public Criteria andFAdminIdBetween(Integer value1, Integer value2) {
            addCriterion("f_admin_id between", value1, value2, "fAdminId");
            return (Criteria) this;
        }

        public Criteria andFAdminIdNotBetween(Integer value1, Integer value2) {
            addCriterion("f_admin_id not between", value1, value2, "fAdminId");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {
        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}